package com.study.a05threadDemo5;

public class ThreadDemo {
    public static void main(String[] args) {

        MyRunnable mr=new MyRunnable();

        Thread t1=new Thread(mr,"线程1");
        Thread t2=new Thread(mr,"线程2");

        t1.setPriority(10);

        System.out.println(t1.getPriority());
        System.out.println(t2.getPriority());

        System.out.println(Thread.currentThread().getPriority());
    }

}
